package com.woniu.order.bean;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellowDocter
 * @since 2022-08-13
 */
@ApiModel(value = "Area对象", description = "")
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("区域编号")
    private Integer areaid;

    @ApiModelProperty("区域名称")
    private String areaname;

    @ApiModelProperty("父级编号")
    private Integer parentid;

    @ApiModelProperty("区域等级(1省/2市/3区县)")
    private Integer arealevel;

    @ApiModelProperty("状态（1可用/0不可用）")
    private Integer status;
    @ApiModelProperty("省级编号（areaid前两位）")
    @TableField(exist = false)
    private Integer provinceId;
    @ApiModelProperty("市级编号（areaid中间两位）")
    @TableField(exist = false)
    private Integer cityId;
    public Integer getAreaid() {
        return areaid;
    }

    public void setAreaid(Integer areaid) {
        this.areaid = areaid;
    }
    public String getAreaname() {
        return areaname;
    }

    public void setAreaname(String areaname) {
        this.areaname = areaname;
    }
    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }
    public Integer getArealevel() {
        return arealevel;
    }

    public void setArealevel(Integer arealevel) {
        this.arealevel = arealevel;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    @Override
    public String toString() {
        return "Area{" +
                "areaid=" + areaid +
                ", areaname='" + areaname + '\'' +
                ", parentid=" + parentid +
                ", arealevel=" + arealevel +
                ", status=" + status +
                ", provinceId=" + provinceId +
                ", cityId=" + cityId +
                '}';
    }
}
